const {
	login3,
	addnewadmin3,
	getadminlist3,
	changeavtive3,
} = require("../dao/adminDao");
module.exports = {
	login2: async (admin) => {
		return await login3(admin);
	},
	addnewadmin2: async (admin) => {
		const data = await addnewadmin3(admin);
		if (data._id) {
			return true;
		} else {
			return false;
		}
	},
	getadminlist2: async () => {
		return await getadminlist3();
	},
	changeavtive2: async (admin) => {
		const data = await changeavtive3(admin);
		if (data.ok == 1) {
			return true;
		} else {
			return false;
		}
	},
};
